<!doctype html>
<meta charset="utf-8">
<title>Negative margins in table reference</title>
<Style>table,tr,td{margin:0;padding:0;vertical-align:middle}</style>
<h1>Test passes if there is a single green box</h1>
<table><tr><td style="background:red">
<div style="background:green;width:40px;height:40px"></div>
</td></tr></table>

